import {
	createRouter,
	createWebHistory
} from 'vue-router'

const Home = ()=> import('../views/home/home.vue')
const Category = ()=> import('../views/category/category.vue')
const Cart = ()=> import('../views/cart/cart.vue')
const Profile = ()=> import('../views/profile/profile.vue')

const routes = [{
		path: "",
		redirect: "/Home"
	},
	{
		path: "/Home",
		name: "Home",
		component: Home
	},
	{
		path: "/Category",
		name: "Category",
		component: Category
	},
	{
		path: "/Cart",
		name: "Cart",
		component: Cart
	},
	,
	{
		path: "/Profile",
		name: "Profile",
		component: Profile
	}
]

const router = createRouter({
	history: createWebHistory(process.env.BASE_URL),
	routes
})

export default router
